//*****************************************************************************
//
// ABEC3 Solving Script
// Project: IB-Cone-CircSym
//
//*****************************************************************************

// Simple cone type diaphragm meshed manually and
// placed into an infinite baffle. Because there cannot be a "behind of baffle"
// the cone-cavity and the infinite baffle need to be coupled
// with the help of an interface.
// Model and analysis are circular symmetric.

Control_Solver
  f1=20                     // First frequency
  f2=10000                  // Last frequency
  NumFrequencies=100        // Number of frequencies
  Abscissa=log              // Distribution of frequencies
  MeshFrequency=10000Hz     // Frequency up to which analysis is valid
  Dim=CircSym               // Circular symmetric model
  NUC=true                  // NUC can be applied because interface is extruded.


// List of spatial points.
// Each line consists of <Index> <Coord1> <Coord2>.
// In circular symmetric case there are only two coordinates
// corresponding to <axial> <radial>.
// Shift by 70cm to the rear.

Nodes "Nodes"
  Scale=1mm      // So we can use millimeter in the list
  Shift=-70mm
//Index  <axial> <radial>
  10     20.0      0.0
  20     15.0     20.0
  30      0.0     35.0   // Radius dust cap
  40     70.0    125.0   // Cone radius
  50     70.0    135.0   // Suspension and inner interface radius
  60     90.0    135.0   // Outer interface radius
  70     90.0      0.0   // Outer Interface


SubDomain_Properties
  SubDomain=1
  ElType=Interior        // The cone cavity is an internal domain.

SubDomain_Properties
  SubDomain=2
  ElType=Exterior        // Outside the interface its an exterior problem.

Infinite_Baffle
  SubDomain=2
  Position=Pos           // Infinite baffle pointing to positive axis

// List of mesh-elements.
// Boundary Elements are truncated cones in the case of circular symmetry.
// Each truncated cone is bounded by two rings, which in turn are specified
// by two points, hence there are two references to the node-list.
// Each line consists of <Index>  <RefIndex1> <RefIndex2>.
// Note, the order, which controls the normal of the trucated cone section. 
// For each subdomain normals should point into the enclosed volume.
// This Element-list describes the "internal" part of the diaphragm,
// ie Subdomain=1.

Elements "Cone"
  RefNodes="Nodes"      // From where to take spatial points.
  SubDomain=1           // Index (name) of this system, which is the cone cavity.
  1   10  20            // Truncated cone
  2   20  30            // Truncated cone  
  3   30  40            // ...
  4   40  50

// This element-list describes the interface between the diaphragm-cavity 
// (Subdomain 1) and the Infinite Baffle (Subdomain 2).
// Normals of the interface elements should point into the volume of Subdomain 1,
// because it is specified first in the list of Subdomain=1,2.
// The interface is modelled as a cylinder in order to avoid too acute angles
// at the rim.

Elements "Cone-IB"
  RefNodes="Nodes"
  SubDomain=1,2         // Link SubDomains 1 and 2, ie diaphragm-cavity and infinite baffle.
  1    50  60
  2    60  70


// Driving.
// With the help of the Driving section Elements can be made a boundary-source.
// DrvGroup=1001 links this cluster of elements to the observation stage.
// RefElements="Cone" takes reference to all elements from section "Cone".
// DirIsAxial=true specifies the rigid-body motion to vibrate in axial-direction.

Driving  "Driver1"
  DrvGroup=1001         // Driving values link to observation stage.
  RefElements="Cone"    // Driving all elements of section "Cone".
  DirIsAxial=true       // Vibration is in axial direction.


// Alternate specification of Driving.
// By using a list you can drive individual elements of "Cone".
// Each line of the list consists of <Index>  <RefIndex>  <DrvWeight>.
// <DrvWeight> is optional and defaults to one if omitted.
// (In order to simulate with this version swap "Off").

off Driving  "Driver1"
  DrvGroup=1001         // Driving values link for observation stage
  RefElements="Cone"    // Driving dedicated elements of section "Cone".
  DirIsAxial=true       // Vibration is in axial direction.
  1   1    
  2   2    
  3   3    
  4   4    0.5          // Driving weight of surround is 1/2

